package org.zloy.android.compat;

import android.content.Context;
import android.util.AttributeSet;

/**
 * Workaround to IllegalStateException
 * 
 * @author zloy
 *
 */
public class ViewFlipper extends android.widget.ViewFlipper {

	public ViewFlipper(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public ViewFlipper(Context context) {
		super(context);
	}
	
	@Override
	protected void onDetachedFromWindow() {
		try {
			super.onDetachedFromWindow();
		} catch (Exception e) {
			stopFlipping();
		}
	}


}
